package com.kidback.bbloc259.network.beans;

/**
 * Created by meikai on 2020/05/16.
 */
public class BaseResponse<T> {

    public int code;

    public String message;

    public T data;

    public MetaData meta_data;

    public boolean isSuccessful() {
        return code == 0;
    }

    public String toErrorString() {
        return String.format("%d : %s", code, message);
    }
}
